package cn.aifeix.block;

import cn.aifeix.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlockHandler {

    public static User getUserByIdBlockHandler(@PathVariable("id") Long id, BlockException e) {
        e.printStackTrace();
        return new User(-1L,"限流了","限流了，别来了");
    }
}
